package com.gpframework.common.enums;

import lombok.Getter;

/**
 * 会员卡状态
 */
@Getter
public enum CardStatus {

    /**
     * 卡状态;-10 停用。0 未启用。10 正常使用。 100 过期。
     */
    COMMON_STOP_CARD("普通停卡", "10"),
    SPECIAL_STOP_CARD("特殊停卡", "20"),
    CANCEL_ORDER("取消订单", "-110"),
    REFUND("退款", "-20"),
    NOT_PAY("未付款", "-5"),
    STOP_CARD("停卡", "-10"),
    EXPIRED("已失效", "-2"),
    CANCEL_STOP("取消停卡", "-1"),
    DISABLE("未启用", "0"),
    USING("正常使用", "10"),
    FREEZE("冻结", "20"),
    THAW("解冻", "30"),
    TRANSFER("已转让", "40"),
    OVERDUE("过期", "100"),
    TIME_DELAY("卡延期", "101"),
    UNDER_REFUND("退款中", "-101"),
    ;


    /**
     * 业务名称
     */
    private String name;

    private String key;

    private CardStatus() {
    }

    private CardStatus(String name) {
        this.name = name;
    }

    private CardStatus(String name, String key) {
        this.name = name;
        this.key = key;
    }

}
